package com.example.analysis.entity;

import lombok.Data;
import java.io.Serializable;

/**
 * supervision
 * @author
 */
@Data
public class Supervision implements Serializable {
    private String supervisionId;

    private String userId;

    private String supervisionName;
    private String pwd;


    private static final long serialVersionUID = 1L;

    public String getSupervisionId() {
        return supervisionId;
    }

    public void setSupervisionId(String supervisionId) {
        this.supervisionId = supervisionId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSupervisionName() {
        return supervisionName;
    }

    public void setSupervisionName(String supervisionName) {
        this.supervisionName = supervisionName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Supervision other = (Supervision) that;
        return (this.getSupervisionId() == null ? other.getSupervisionId() == null : this.getSupervisionId().equals(other.getSupervisionId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getSupervisionName() == null ? other.getSupervisionName() == null : this.getSupervisionName().equals(other.getSupervisionName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSupervisionId() == null) ? 0 : getSupervisionId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getSupervisionName() == null) ? 0 : getSupervisionName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", supervisionId=").append(supervisionId);
        sb.append(", userId=").append(userId);
        sb.append(", supervisionName=").append(supervisionName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}

